Tom Melly wrote:
> Does anyone have any idea what the iso-surface function for a croissant is?
> Giles?
Try this, part of my isosurfacic breakfast (I have a milk bottle too):
#declare major_axis=5;
#declare minor_axis=1;
#declare a=function{sqrt(x^2+z^2)-major_axis}
isosurface{
function{sqrt(y^2+a^2)-minor_axis*(0.9+z*0.2)}
contained_by{sphere{0,10}}
eval
threshold 0
pigment{Red}
rotate y*45
}
G.
Post a reply to this message
|